package com.compass.mobile.ui.activity

import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentTransaction
import androidx.leanback.widget.ArrayObjectAdapter
import androidx.leanback.widget.FocusHighlight
import androidx.leanback.widget.FocusHighlightHelper
import androidx.leanback.widget.OnChildViewHolderSelectedListener
import androidx.recyclerview.widget.RecyclerView
import com.compass.mobile.R
import com.compass.mobile.databinding.ActivityHomePageBinding
import com.compass.mobile.databinding.ActivityMyOrderBinding
import com.compass.mobile.framework.base.BaseVBActivity
import com.compass.mobile.framework.utils.dpToPx
import com.compass.mobile.models.Dictionaries
import com.compass.mobile.presenters.DictionariesPresenter
import com.compass.mobile.ui.fragment.MyInspectionFragment
import com.compass.mobile.widget.MyBridgeAdapter

/**
 * Description： 检验检查
 * Date:2024/6/20 21:43
 */
class MyInspectionActivity : BaseVBActivity<ActivityHomePageBinding>() {

    companion object {
        fun start(context: Context) {
            val intent = Intent(context, MyInspectionActivity::class.java)
            context.startActivity(intent)
        }
    }

    private lateinit var myInspectionFragment: MyInspectionFragment
    override fun initView(savedInstanceState: Bundle?) {
        myInspectionFragment = MyInspectionFragment()
        displaySelectedFragment(myInspectionFragment)
    }


    // 根据需要显示或替换Fragment
    private fun displaySelectedFragment(fragment: Fragment) {
        val fragmentTransaction: FragmentTransaction = supportFragmentManager.beginTransaction()
        fragmentTransaction.replace(R.id.fragmentContainer, fragment)
        fragmentTransaction.commit()
    }


}